<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<div class="post">
				<p class="meta">公告预览</p>
				<div class="entry">
					<div class="announcement preview">
						<h2 id='title'><?php echo $announcement_detail['title']?></h2>
						<span id='info'><?php echo $this->common_data->_get_news_announcement_status_by_cid($announcement_detail['is_published'])?></span>
						<p id='contents'><?php echo $announcement_detail['contents']?></p>
						<a id='author' title='关于社联<?php echo ASSOCIATION_XCB_NAME ?>' href='<?php echo ASSOCIATION_ABOUT_PATH . ASSOCIATION_XCB_CID ?>'>社联<?php echo ASSOCIATION_XCB_NAME . ' ' . $announcement_detail['poster_name'];?></a><br />
						<span id='publish_time'><?php echo date("Y年m月d日", $announcement_detail['create_time'])?></span>
					</div>
				    <?php if ($announcement_detail['is_published'] == NOT_PUBLISHED):?>
				    <a class='anchor_button' href="<?php echo BACKEND_ASSOCIATION_ANNOUNCEMENT_PUBLISH_PATH . $announcement_detail['id']?>" >发布公告</a>
				    <a class='anchor_button' href="<?php echo BACKEND_ASSOCIATION_ANNOUNCEMENT_EDIT_PATH . $announcement_detail['id']?>" >修改草稿</a>
					<?php else :?>
					<a class='anchor_button' href="<?php echo BACKEND_ASSOCIATION_ANNOUNCEMENT_EDIT_PATH . $announcement_detail['id']?>" >修改公告</a>
					<?php endif;?>
					<a class='anchor_button' onclick="history.back(-1);" >返回</a>
				</div>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
